home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
powerb5.zip
/
P5WPR002.TIP
< prev
next >
Wrap
Text File
|
1993-06-01
|
2KB
|
49 lines
January's Star-Dot-Star included a WordPerfect macro for
printing a document from last page to first -- a handy
capability if your printer stacks pages facing up. But it
wouldn't work on one of my documents.
I discovered the problem with the very first document that
had a table of contents. After each page, WordPerfect would
stop and ask if I wanted to print before regenerating the
table of contents. Once I discovered this, I rewrote the
macro to work whether or not a table of contents was present
[see below].
Donald G. Campbell
San Diego
Editor's Note: As Mr. Campbell points out, the original
macro did not work when there was a table of contents in the
document. To fix this, it's necessary to simulate the user
pressing "Y" before each page is printed. This revised macro
shows how you can query WordPerfect's internal flags to
determine whether or not a response is needed. As with the
original, this version of REVPRINT uses macro-specific
commands, so you couldn't create it by simply recording
keystrokes; you'd have to use WordPerfect's idiosyncratic
macro editor. However, we've saved you the trouble; the
macro is available in WordPerfect 5.1 format in the file
\P5WPR\REVPRINT.WPM on your PowerBase *.* Volume 5 diskette.
This revised macro will print the pages of a document in
reverse order even if it has a table of contents.
{DISPLAY OFF}
{Home}{Home}{Down}
{WHILE}{SYSTEM}page~>1~
{Print}2
{IF}{STATE}&1024~Y{END IF}
{Page Up}
{END WHILE}
{Print}2
{IF}{STATE}&1024~Y{END IF}
Title: Printing Backward Even Better
Category: WPR
Issue Date: May, 1992
Editor: Brett Glass
Supplementary Files: P5WPR\REVPRINT.WPM
Filename: P5WPR002.TIP